package com.lyfei.yd.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public abstract class BaseEntity<T extends Model<T>> extends Model<T>{
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 版本 */
    @Version
    private Integer version;
}
